package javawork001;

public class have7 {
	public static void main(String[] args){
		int num;
		int ge,shi,bai;
		for (num=0; num<1000; num++)
		{
			ge = num%10;
			shi = num % 100 / 10;
			bai = num %100;
			if (ge==7 || shi==7 || bai==7 || num/7==0)
				System.out.println(num);
		}
	}
}
